package com.ctcemti.mdm.project.sys.dao;

import com.ctcemti.mdm.project.sys.entity.OrgJob;
import com.ctcemti.mdm.project.sys.entity.OrgPerson;
import com.ctcemti.mdm.project.sys.entity.OrgRole;
import com.ctcemti.mdm.project.sys.entity.OrgJob;
import com.ctcemti.mdm.project.sys.entity.OrgPerson;
import com.ctcemti.mdm.project.sys.entity.OrgRole;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.IdsMapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrgRoleMapper extends tk.mybatis.mapper.common.Mapper<OrgRole>,IdsMapper<OrgRole> {

    int updateByPidSelective(OrgRole record);

    int insertBatch(List<OrgRole> list);

    int deleteByPrimaryKeys(List<String> ids);

    List<OrgPerson> selectPersonByRoleId(String roleid);

    List<OrgRole> selectListByCondition(OrgRole orgRole);

    List<OrgJob> selectJobByCondition(Map<String,Object> map);
}